<h1>New user</h1>

<% form_for(@user) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :login %><br />
    <%= f.text_field :login %>
  </p>
  <p>
    <%= f.label :pass %><br />
    <%= f.password_field :pass %>
  </p>
  <p>
    <%= f.label :pass %><br />
    <%= f.password_field :pass_confirmation %>
  </p>
  <p>
    <%= f.label :privileges %><br />
    <%= f.select :privileges, ["Admin","Manager","Receptionist"] %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', users_path %>